#计算百钱百鸡
# coding:utf-8

#a=公鸡 b=母鸡 c为小鸡


count = 0
for a in range (21):
    for b in range (34):
        for c in range (101):
            if 15 * a + 9 * b + c == 300 and a + b + c == 100:
                count += 1
                print("方案{}:公鸡{}只，母鸡{}只，小鸡{}只".format(count,a,b,c))


print("共{}种".format(count))


